package com.xinzhidi.web.netty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;


/**
 * 协议指令数据域字段 agreement_command_field
 *
 * @author cx
 * @date 2023-06-13
 */
@ApiModel(value = "协议指令数据域字段对象")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("agreement_command_field")
public class AgreementCommandField {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "指令id")
    private Long commandId;

    @ApiModelProperty(value = "序号")
    private Integer sort;

    @ApiModelProperty(value = "是否包含单位（0：包含  1：不包含  默认1）")
    private String unitFlag;

    @ApiModelProperty(value = "字段中文名")
    private String fieldChinese;

    @ApiModelProperty(value = "字段英文名")
    private String fieldEnglish;

    @ApiModelProperty(value = "字段开始位置")
    private Integer startNum;

    @ApiModelProperty(value = "字段结束位置")
    private Integer endNum;

    @ApiModelProperty(value = "是否高低位（0：是  1：否  默认：0）")
    private String highLowPosition;

    @ApiModelProperty(value = "系数")
    private BigDecimal coefficient;

    @ApiModelProperty(value = "是否是十六进制（0：是  1：不是   默认0）")
    private Integer hex;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "数据类型（1：小数  2：整数  3：字符串）")
    private Integer fieldType;

}
